package com.ibeeking.gmc.global.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@ToString
public class AgreementParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {BaseValidationGroup.Update.class})
    private Long id;

    /**
     * 协议类型
     */
    @NotNull(message = "协议类型不能为空", groups = {BaseValidationGroup.Update.class,BaseValidationGroup.Insert.class})
    private String type;

    /**
     * 协议名称
     */
    @NotNull(message = "协议名称不能为空", groups = {BaseValidationGroup.Update.class,BaseValidationGroup.Insert.class})
    private String name;

    /**
     * 协议内容
     */
    @NotNull(message = "协议内容不能为空", groups = {BaseValidationGroup.Update.class,BaseValidationGroup.Insert.class})
    private String content;

    private Long modifyBy;

    private Long createBy;

}
